#!/bin/bash
Month=`expr $(date|awk -F"月" '{print $1}'|awk -F" " '{print $2}') - 1`
Year=`date|awk -F"年" '{print $1}'|awk -F" " '{print $1}'`
cd /var/log/yum_update/
tar zcvf /backup/yum_update/yum_update_"$Year"-"$Month".tar.gz `/usr/bin/find . -name "*.log" -mtime +1|sort -n`  
